<!DOCTYPE HTML>
<html>
<head>
	<meta charset="utf-8">
	<meta name="viewport" content="width=device-width, user-scalable=no" />
	<title>我的纸条</title>
	<meta name="keywords" content="SEO关键字">
	<meta name="description" content="SEO介绍">
	<link rel="stylesheet" type="text/css" href="/static/web/style/style.css" />
</head>
<body>

<div class="top">
	<div class="items">
		<a class="item" href="/shop">抽放纸条</a>
		<a class="item on" href="/shop/my_scrip?act=put">我的纸条</a>
	</div>
</div>
<div class="top_blank"></div>

<div class="scrip_nav">
	<div class="container items">
		<a class="item {{Request()->act == 'put' ? 'on' : ''}}" href="/shop/my_scrip?act=put">放入的纸条</a>
		<a class="item {{Request()->act == 'take' ? 'on' : ''}}" href="/shop/my_scrip?act=take">抽取的纸条</a>
	</div>
</div>

<div class="scrip_list">
	<div class="container items">
		@if(!empty($scrips->items()))
		@foreach($scrips as $value)
		<div class="item">
			<div class="item_top">
				<span class="sex">[{{$value->sex == 'man' ? '男生' : '女生'}}纸条]</span>
			</div>
			<div class="item_content">
				<div class="weixin">微信：{{$value->weixin}}</div>
				<div class="message">留言：{{$value->content}}</div>
				@if(!empty($value->images))
				<div class="images">
					@foreach($value->images as $value_image)
					<div class="image"><img src="{{$value_image->image}}"></div>
					@endforeach
				</div>
				@endif
			</div>
			<div class="item_foot">
				<span class="date">{{$value->created_at}}</span>
			</div>
		</div>
		@endforeach
		<div class="page">{{ $scrips->appends(Request()->all())->links() }}</div>
		@else
		<div class="empty">
      <div class="img"><img src="/static/web/images/noresult.png"></div>
      <div class="txt">纸条为空，快去抽取你的缘分吧~</div>
    </div>
		@endif

	</div>
</div>

</body>
</html>
